<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="${pageContext.request.contextPath}/bootstrapJS/jquery.js"></script>
<title>学生管理</title>
</head>
<body>
<button onclick="javascript:window.location.href='studentedit'">新增</button>
		<select name="tbclassid" id="tbclassid" onchange="gaibian();">
			<c:forEach items="${tbclass}" var="s">
				<option value="${s.id }">${s.className}</option>
			</c:forEach>
		</select>
	<div id="div1"></div>
	<script type="text/javascript">
	 gaibian();
		function gaibian() {
			var id=$("#tbclassid").val();
			$("#div1").load("finbyclassid?tbclassid="+id);
		}
	</script>
</body>
</html>